#ifndef GLWIDGET_H
#define GLWIDGET_H

#include <QtOpenGL>
#include <QGLWidget>

#include "canvas.h"

class GLWidget : public QGLWidget
{
    Q_OBJECT
public:
    explicit GLWidget(QWidget *parent = 0);    
    void paintGL();
    void initializeGL();
    void resizeGL(int w, int h);
    void update_texture();
    void set_canvas(Canvas *canvas_ptr);
    void setup_texture();
    Canvas *m_canvas_ptr;
    GLuint m_texture_id;
    QImage m_gl_texture;
signals:

public slots:

};

#endif // GLWIDGET_H
